package com.zpark.mybatis_plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author RZS
 * @since 2023-06-30
 */
@Getter
@Setter
@TableName("books")
@ApiModel(value = "Books对象", description = "")
public class Books implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("书id")
    @TableId(value = "book_id", type = IdType.AUTO)
    private Integer bookId;

    @ApiModelProperty("书名")
    @TableField("book_name")
    private String bookName;

    @ApiModelProperty("数量")
    @TableField("book_counts")
    private Integer bookCounts;

    @ApiModelProperty("描述")
    @TableField("detail")
    private String detail;


}
